﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DiscoveryLogic.UIManager;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Regions;

namespace DiscoveryLogic.XamlParts.Views
{
	public class ToolboxModule : IModule
	{
		private readonly IRegionManager regionManager;

		public ToolboxModule(IRegionManager regionMgr)
		{
			this.regionManager = regionMgr;
		}

		#region Implementation of IModule

		public void Initialize()
		{
			IRegion mainRegion = this.regionManager.Regions[OutlookLikeRegionNames.ToolboxNaviPane];
			mainRegion.Add(new Toolbox());
		}

		#endregion
	}
}
